package hsintiao.com.xintiaoAPP.util;

public enum ResponseCode {


    SUCCESS(200,"操作成功"),
    FAILURE(201,"操作失败"),
    USERNAME_PASSWORD_EXCEPTION(203,"用户名或密码输入有误"),
    ACCOUNT_DISABLED(204,"账号已被禁用，请联系管理员"),
    AUTHORIZE_EXCEPTION(403,"权限不足"),
    SYSTEM_EXCEPTION(500,"系统错误"),
    NEED_LOGIN(205,"需要登录");

    int code;
    String message;

    ResponseCode(int code, String message){
        this.code = code;
        this.message = message;
    }

    ResponseCode() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
